package ${packageValue}.entity;

<#if logicDeleted>
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
</#if>
<#if version>
import com.baomidou.mybatisplus.annotation.Version;
</#if>
import com.baomidou.mybatisplus.annotation.TableName;
import com.yupaits.yutool.orm.mybatis.base.BaseMybatisEntity;
import lombok.*;
<#if (imports?size > 0)>
	<#list imports as typeImport>
import ${typeImport};
    </#list>
</#if>

/**
 * ${comment}
 * @author ${author}
 * @since ${date}
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("${tableName}")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ${entityName} extends BaseMybatisEntity<Long, ${entityName}> {
    private static final long serialVersionUID = 1L;

    <#if (fields?size > 0)>
        <#list fields as field>
    /**
     * ${field.comment}
     */
    private ${field.fieldType} ${field.fieldObj};

        </#list>
    </#if>
    <#if logicDeleted>
    /**
     * 删除标记
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleted;

    </#if>
    <#if version>
    /**
     * 版本号
     */
    @Version
    private Long version;

    </#if>
}